import axios from "axios";
import { message } from 'ant-design-vue';

const instance = axios.create({
    baseURL: 'http://123.57.152.16//web'
});

// 添加响应拦截器
instance.interceptors.response.use(function (response) {
    return response.data;
}, function (error) {
    message.error(error)
    return Promise.reject(error);
});


export default instance;